package ioperation;

import Book.Book;
import Book.BookShelf;

public class ShowOperation implements IOperation{
    @Override
    public void work(BookShelf bookShelf) {
        System.out.println("#########显示图书#########");
        int currentSize=bookShelf.getUsedSize();
        for (int i = 0; i <currentSize; i++) {
            Book book=bookShelf.getBooks(i);
            System.out.println(book);
        }
    }
}

